package main

import (
	"./operation"
	"./report"
	"./setting"
	"./users"
	"./workorder"
)

var (
	handlers = map[string][]interface{}{
		"/addwo":          []interface{}{workorder.AddWorkOrderHandler, "Get", "Post"},
		"/modifywo":       []interface{}{workorder.ModifyWorkOrderHandler, "Get", "Post"},
		"/generatesn":     []interface{}{workorder.GenerSSNHandler, "Get", "Post"},
		"/scanflow":       []interface{}{operation.ScanFlowHandler, "Get", "Post"},
		"/_scanflow":      []interface{}{operation.NormalScanHandler, "Get"},
		"/_scankeyparts":  []interface{}{operation.KeyPartsScanHandler, "Get"},
		"/_scancustomer":  []interface{}{operation.CustomerScanHandler, "Get"},
		"/_packflow":      []interface{}{operation.PackingScanHandler, "Get"},
		"/_forceclose":    []interface{}{operation.ForceCloseScanHandler, "Get"},
		"/repairflow":     []interface{}{operation.RepairFlowHandler, "Get", "Post"},
		"/_repairsel":     []interface{}{operation.SelectRprSSNHandler, "Get"},
		"/deliveryflow":   []interface{}{operation.DeliveryHandler, "Get", "Post"},
		"/_deliveryflow":  []interface{}{operation.DeliveryOperHandler, "Get"},
		"/splitbox":       []interface{}{operation.SplitBoxHandler, "Get", "Post"},
		"/_splitbox":      []interface{}{operation.SplitBoxOperHandler, "Get"},
		"/mergebox":       []interface{}{operation.MergeBoxHandler, "Get", "Post"},
		"/ssnreplace":     []interface{}{operation.ReplaceSSNHandler, "Get", "Post"},
		"/pim2323":        []interface{}{operation.Pim2323Handler, "Get", "Post"},
		"/passivepim":     []interface{}{operation.PassivePimHandler, "Get", "Post"},
		"/setitem":        []interface{}{setting.ItemSetHandler, "Get", "Post"},
		"/_setitem":       []interface{}{setting.ItemSetPageHandler, "Get"},
		"/setitemtest":    []interface{}{setting.ItemTestSetHandler, "Get", "Post"},
		"/setstation":     []interface{}{setting.StationSetHandler, "Get", "Post"},
		"/setcomputer":    []interface{}{setting.ComputerSetHandler, "Get", "Post"},
		"/setfailure":     []interface{}{setting.FailureSetHandler, "Get", "Post"},
		"/_setfailture":   []interface{}{setting.FailureSetPageHandler, "Get"},
		"/setline":        []interface{}{setting.LineSetHandler, "Get", "Post"},
		"/setpart":        []interface{}{setting.PartsSetHandler, "Get", "Post"},
		"/_delpart":       []interface{}{setting.DeleteKeyPartHandler, "Get"},
		"/setrouting":     []interface{}{setting.RoutSetHandler, "Get", "Post"},
		"/routing":        []interface{}{setting.GetRoutingHandler, "Get"},
		"/repairset":      []interface{}{setting.GetRepairSetHandler, "Get"},
		"/setrepair":      []interface{}{setting.RepairSetHandler, "Get", "Post"},
		"/settest":        []interface{}{setting.TestingSetHandler, "Get", "Post"},
		"/syslock":        []interface{}{setting.SysLockSetHandler, "Get", "Post"},
		"/queryssn":       []interface{}{report.QuerySSNHandler, "Get", "Post"},
		"/querywo":        []interface{}{report.QueryWonoHandler, "Get", "Post"},
		"/_downloadwo":    []interface{}{report.DownloadWoHandler, "Get"},
		"/wopassdetail":   []interface{}{report.WoPassDetailHandler, "Get"},
		"/_pagebywopass":  []interface{}{report.SplitWoPassByPageHandler, "Get"},
		"/wofaildetail":   []interface{}{report.WoFailDetailHandler, "Get"},
		"/_pagebywofail":  []interface{}{report.SplitWoFailByPageHandler, "Get"},
		"/inprocdetail":   []interface{}{report.InprocessDetailHandler, "Get"},
		"/_pagebyinproc":  []interface{}{report.SplitInprocessByPageHandler, "Get"},
		"/infaildetail":   []interface{}{report.InFailDetailHandler, "Get"},
		"/_pagebyinfail":  []interface{}{report.SplitInFailByPageHandler, "Get"},
		"/queryitem":      []interface{}{report.QueryItemHandler, "Get", "Post"},
		"/_pagebywo":      []interface{}{report.SplitWoByPageHandler, "Get"},
		"/querybox":       []interface{}{report.QueryBoxHandler, "Get", "Post"},
		"/querypo":        []interface{}{report.QueryPonoHandler, "Get", "Post"},
		"/_pagebypo":      []interface{}{report.SplitPoByPageHandler, "Get"},
		"/_downloadpo":    []interface{}{report.DownloadPoHandler, "Get"},
		"/wopassed":       []interface{}{report.QueryWoPassedHandler, "Get", "Post"},
		"/_wopassed":      []interface{}{report.SplitWoPassedByPageHandler, "Get"},
		"/dailyreport":    []interface{}{report.DailyRprHandler, "Get", "Post"},
		"/dailydetail":    []interface{}{report.DailyDetailHandler, "Get"},
		"/_pagebydaily":   []interface{}{report.SplitDailyByPageHandler, "Get"},
		"/querybydate":    []interface{}{report.QueryByDateHandler, "Get", "Post"},
		"/datedetail":     []interface{}{report.DateByDetailHandler, "Get"},
		"/_pagebydate":    []interface{}{report.SplitDateQueryHandler, "Get"},
		"/querydelivery":  []interface{}{report.QueryDeliveryHandler, "Get", "Post"},
		"/querybyoper":    []interface{}{report.QueryOperHandler, "Get", "Post"},
		"/operdetail":     []interface{}{report.QueryOperDetailHandler, "Get"},
		"/_pagebyoper":    []interface{}{report.SplitOperByPageHandler, "Get"},
		"/controlrun":     []interface{}{report.ControlRunQueryHandler, "Get"},
		"/rprwip":         []interface{}{report.QueryWOWIPHandler, "Get", "Post"},
		"/_pagebywowip":   []interface{}{report.SplitWoWipByPageHandler, "Get"},
		"/itemwip":        []interface{}{report.QueryItemWIPHandler, "Get", "Post"},
		"/_pagebyitem":    []interface{}{report.SplitItemByPageHandler, "Get"},
		"/wowipdetail":    []interface{}{report.QueryWOWIPDetailHandler, "Get"},
		"/itemwipdetail":  []interface{}{report.QueryItemWIPDetailHandler, "Get"},
		"/kanban":         []interface{}{report.QueryKanBanHandler, "Get", "Post"},
		"/kbpassdetail":   []interface{}{report.KanBanPassDetailHandler, "Get"},
		"/_pagebykbpass":  []interface{}{report.SplitKanBanPassByPageHandler, "Get"},
		"/kbfaildetail":   []interface{}{report.KanBanFailDetailHandler, "Get"},
		"/_pagebykbfail":  []interface{}{report.SplitKanBanFailByPageHandler, "Get"},
		"/failstatistics": []interface{}{report.FailStatisticsHandler, "Get", "Post"},
		"/querystatis":    []interface{}{report.FailStatisDetailHandler, "Get"},
		"/_pagestatis":    []interface{}{report.SplitFailStatisByPageHandler, "Get"},
		"/search":         []interface{}{report.SearchObjHandler, "Get"},
		"/login":          []interface{}{users.LoginHandler, "Get", "Post"},
		"/language":       []interface{}{users.LanguageHandler, "Get"},
		"/index":          []interface{}{users.IndexHandler, "Get"},
		"/logout":         []interface{}{users.LogoutHandler, "Get"},
		"/changepwd":      []interface{}{users.ChangePwdHandler, "Get", "Post"},
		"/adduser":        []interface{}{users.AddUserHandler, "Get", "Post"},
		"/modifyuser":     []interface{}{users.ModifyUserHandler, "Get", "Post"},
		"/setusrstation":  []interface{}{users.SetUsrStationHandler, "Get", "Post"},
		"/_splituser":     []interface{}{users.UserSplitPageHandler, "Get"},
		"/usrdetail":      []interface{}{users.UsrDetailHandler, "Get"},
		"/usrstation":     []interface{}{users.UsrStationHandler, "Get"},
		"/":               []interface{}{users.IndexHandler, "Get"},
	}
)
